<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}

global $lang;
global $_MGPC_POST,$_MGPC_GET,$_MGPC_REQ,$_MGPC_COOKIE,$_MGPC_SESSION,$configlang,$configinfo,$configblock,$configcommon,$configmember,$configbase,$configsystem,$configindex,$configother;

// 加载模板程序配置
if($configinfo['tplok'] == 1)
{
	require(MODULEPARA_PATH.'/configmodule/configmodule/module/blockconfigtpl_before.php');
}

// 扩展模块配置
require(MODULEPARA_PATH . '/configmodule/configmodule/module/blockconfig.php');

// 加载模板程序配置
if($configinfo['tplok'] == 1)
{
	require(MODULEPARA_PATH.'/configmodule/configmodule/module/blockconfigtpl.php');
}

// 开启MVC框架模式
if($configinfo['mvc'] == 1)
{
	$this->_MGPC_POST = $_MGPC_POST;
	$this->_MGPC_GET = $_MGPC_GET;
	$this->_MGPC_REQ = $_MGPC_REQ;
	$this->_MGPC_COOKIE = $_MGPC_COOKIE;
	$this->_MGPC_SESSION = $_MGPC_SESSION;
	$this->configlang = $configlang;
	$this->configinfo = $configinfo;
	$this->configblock = $configblock;
	$this->configcommon = $configcommon;
	$this->configmember = $configmember;
	$this->configbase = $configbase;
	$this->configsystem = $configsystem;
	$this->configindex = $configindex;
	$this->configother = $configother;
	if(empty($colsmarty))
	{
		$this->smarty_assign('_MGPC_POST',     $_MGPC_POST);
		$this->smarty_assign('_MGPC_GET',     $_MGPC_GET);
		$this->smarty_assign('_MGPC_REQ',     $_MGPC_REQ);
		$this->smarty_assign('_MGPC_COOKIE',     $_MGPC_COOKIE);
		$this->smarty_assign('_MGPC_SESSION',     $_MGPC_SESSION);
		$this->smarty_assign('configlang',     $configlang);
		$this->smarty_assign('configinfo',     $configinfo);
		$this->smarty_assign('configblock',     $configblock);
		$this->smarty_assign('configcommon',     $configcommon);
		$this->smarty_assign('configmember',     $configmember);
		$this->smarty_assign('configbase',     $configbase);
		$this->smarty_assign('configsystem',     $configsystem);
		$this->smarty_assign('configindex',     $configindex);
		$this->smarty_assign('configother',     $configother);
	}
}else{
	if(empty($colsmarty))
	{
		smarty_assign('_MGPC_POST',     $_MGPC_POST);	
		smarty_assign('_MGPC_GET',     $_MGPC_GET);	
		smarty_assign('_MGPC_REQ',     $_MGPC_REQ);
		smarty_assign('_MGPC_COOKIE',     $_MGPC_COOKIE);
		smarty_assign('_MGPC_SESSION',     $_MGPC_SESSION);
		smarty_assign('configlang',     $configlang);
		smarty_assign('configinfo',     $configinfo);
		smarty_assign('configblock',     $configblock);
		smarty_assign('configcommon',     $configcommon);
		smarty_assign('configmember',     $configmember);
		smarty_assign('configbase',     $configbase);
		smarty_assign('configsystem',     $configsystem);
		smarty_assign('configindex',     $configindex);
		smarty_assign('configother',     $configother);
	}
}
?>